package cn.crex1.xiaomi.core.mvc.context;

import cn.crex1.xiaomi.core.mvc.util.StringUtil;

public abstract class AbstractWebContext implements WebContext{
	
	private static final String contextname="xiaomi";
	
	private String contextid;
	
	public AbstractWebContext() {
		this.contextid=StringUtil.contextId();
	}

	@Override
	public String contextId() {	
		return contextid;
	}

	@Override
	public String contextname() {	
		return contextname;
	}
	
	public static String getContextname() {
		return contextname;
	}

	public String getContextid() {
		return contextid;
	}

	public abstract void start();
	
	public abstract void stop();
	
	public abstract void refresh();
	
	public abstract boolean isclose();
	
}
